package com.shabaga.algoviz;

import javafx.ui.*;
import javafx.ui.canvas.*; 
import javafx.ui.filter.*;

class Title extends CompositeNode {
	attribute title: String;
	attribute width: Number;
	attribute height: Number;
}

function Title.composeNode() = 
	Group {
		transform: [Translate {
			x: width / 2
			y: height / 2
		}]
		content: Text {
			filter: [ShadowFilter]
			content: title
			fill: Color {
				blue: 255
				green: 255
				red: 255
			}
			font: Font {face: VERDANA, style: [ITALIC, BOLD], size: 70}
		}
	}
;